package utils;

import android.text.TextUtils;

/**
 * 通讯录 使用工具类
 * Created by Administrator on 2016/5/30.
 */
public class ContactsUtil {
    public static String getsource(String source) {
        if (TextUtils.isEmpty(source)) return "0";
        String sourceStr = "";
        switch (source) {
            case "account_search":
            case "0":
                sourceStr = "0";
                break;
            case "qrcode_scan":
            case "1":
                sourceStr = "1";
                break;
            case "mdlk_card":
            case "2":
                sourceStr = "2";
                break;
            case "mobile_contact":
            case "3":
                sourceStr = "3";
                break;
            case "referee_friend":
            case "4":
                sourceStr = "4";
                break;
            case "5":
            case "blind_date":
                sourceStr = "5";
                break;
            case "6":
            case "nearby_people":
                sourceStr = "6";
                break;
            case "7":
            case "group":
                sourceStr = "7";
                break;
            case "8":
            case "money_tree":
                sourceStr = "8";
                break;
            case "9":
            case "invite":
                sourceStr = "9";
                break;
            default:
                return source;
        }
        return sourceStr;
    }
}
